//
//  PageRow.swift 首页item组合view,有一个标题和内容组成
//  swiftStudy
//
//  Created by Zhang on 2021/3/15.
//
import SwiftUI

struct PageRow : View {
    
    private let title: String
    private let subTitle: String
    
    init(title: String,subTitle: String) {
        self.title = title
        self.subTitle = subTitle
    }
    
    var body: some View {
        VStack(alignment: .leading, spacing: 5) {
            Text(title).bold()
            
            Text(subTitle).font(.subheadline).opacity(0.5).lineLimit(nil)

        }
    }
    
}
